package com.macro.mall.dto.admin;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by @author dabaoqiang on 2024/5/24.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AdminPreClockDTO {

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date endTime;

    @ApiModelProperty(value = "开始日期")
    private Long startTimeDateNo;

    @ApiModelProperty(value = "开始日期")
    private Long endTimeDateNo;

    @ApiModelProperty(value = "打卡群体类型，1->结缘群,2->传法群")
    @NotNull(message = "打卡群体类型不能为空")
    private Integer sourceType;

}
